using System;
using System.Collections.Generic;

namespace LuaLanguage
{
    public class Declaration : IComparable<Declaration>
    {
        public Declaration(string description, string displayText, int glyph, string name)
        {
            Description = description;
            DisplayText = displayText;
            Glyph = glyph;
            Name = name;
        }

        public string Description{ get; set; }
        public string DisplayText{ get; set; }
        public int Glyph{ get; set; }
        public string Name { get; set;}

        #region IComparable<Declaration> Members

        public int CompareTo(Declaration other)
        {
            return DisplayText.CompareTo(other.DisplayText);
        }

        #endregion

    }
}